/* #################### 全局 #################### */
* {
	margin: 0;
	padding: 0;
	border: 0;
}

html, body, #main {
	color: #555;
	height: 100%;
}

aside {
	width: 300px;
	height: 100%;
	position: fixed;
	background: #262a30;
}

nav {
	height: 50px;
	/*background: #b9e1b1;*/
}

#content {
	height: 100%;
	padding-left: 300px;
	/*background: #f9f7ed;*/
}
/* #################### 全局 #################### */

/* #################### 导航 #################### */
nav #menu {
	float: right;
	padding-right: 20px;
}
nav ul li {
	float: left;
	padding: 10px;
	list-style: none;
}
nav ul li a{
	color: #555;
	font-size: 12px;
	text-decoration: none;
}
nav ul li a:hover {
	border-bottom: 1px solid;
}
/* #################### 导航 #################### */

/* #################### 侧边栏 #################### */
/* 搜索框 */
aside input {
	width: 290px;
	height: 50px;
	margin: 0;
	border: 0;
	padding: 0;
	left: 0;
	font-size: 14px;
	background: #131417;
	text-indent: 20px;
	outline: none;
	color: #87daff;
	position: absolute;
}

/* 搜索图标 */
aside #search #search-icon {
	position: absolute;
	top: 0;
	right: 0;
	color: #999;
	font-size: 20px;
	width: 40px;
	height: 50px;
	background: #131417;
	text-align: center;
	line-height: 2.5;
	text-decoration: none
}
aside #search #search-icon:hover {
	cursor: pointer;
	color: #87daff;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
}

aside #search .icon-active{
	color: #e06c75;
}

/* 滚动条 */
aside {
	overflow: auto;
}

/* 树目录位置 */
aside #tree {
	padding-top: 55px
}

/* 树目录 */
aside ul {
	padding: 0px 5px 5px 20px;
}
aside ul li {
	list-style: none;
	line-height: 25px;
}
aside ul li a {
	color: #999;
	font-size: 14px;
	text-decoration: none

}
aside ul li a:hover {
	color: #ccc;
	border-bottom: 1px solid #ccc;
	cursor:pointer;
}
aside #tree .active a,
aside #tree .active a:hover {
	color: #87daff;
	border-bottom: 1px solid #87daff;
}
/* #################### 侧边栏 #################### */

/* #################### 文章 #################### */
/* 作者 时间 相关 */
#post-author {
	font-size: 9px;
	position: absolute;
	top: 60px;
	right: 30px;
	color: #999;
}

#post-date {
	font-size: 9px;
	position: absolute;
	top: 80px;
	right: 30px;
	color: #999;
}

/* 文章各个元素间隔 */
#article {
	padding: 50px 30px;
}
#article * {
	margin: 30px 0;
}


#article ol,
#article ul {
	padding-left: 40px;
	line-height: 5px;
	margin: 20px 0;
}

#article li {
	margin: 20px 0;
}

#article h1,
#article h2,
#article h3,
#article h4,
#article h5,
#article h6 {
	line-height: 40px;
	margin: 20px 0 15px;
}

#article h1 {
	font-size: 32px;
	font-weight: 900;
	padding-bottom: 10px;
	border-bottom: 2px solid #e06c75;
}

#article h2 {
	font-size: 25px;
	border-left: 3px solid #73b1e0;
	padding-left: 10px;
}

#article h3 {
	font-size: 22px
}

#article a {
	color: #e06c75;
	text-decoration: none;
}

#article a:hover {
	border-bottom: 1px solid;
}

#article h1 a:hover{
	border-bottom: none;
}

#article code {
	border-radius: 3px;
	box-shadow: 0px 0px 5px #999;
}

#article img {
	max-width: 100%;
	height: auto;
	border-radius: 5px;
	box-shadow: 0px 0px 8px #999;
}

#article pre {
	font-size: 14px;
	margin: 20px 0 15px;
}

#article p {
	margin: 0 0 10px;
	line-height: 30px
}

/* 表格处理 */
#article table {
  width: 100%;
  border: 0;
  margin: 20px 0 50px 0;
  border-collapse: collapse;
  border-spacing: 0;
  line-height: 35px;
  border-radius: 8px;
  box-shadow: 0px 0px 5px #999;
}

#article table th {
  background: #73b1e0;
  font-weight: 800;
  font-size: 18px;
  text-align: left;
  line-height: 35px;
  color: #FFF;
}

#article table tr:nth-child(odd) {
  background: #F4F4F4;
}

#article table tr:hover,
#article table td:hover {
  background: #badbf5;
  color: #FFF;
}

#article table td, table th {
  padding: 5px 20px 5px 20px
}

#article table tr:first-child th:first-child {
  border-top-left-radius: 3px;
}

#article table tr:first-child th:last-child {
  border-top-right-radius: 3px;
}

#article table tr:last-child td:first-child {
  border-bottom-left-radius: 3px;
}

#article table tr:last-child td:last-child {
  border-bottom-right-radius: 3px;
}

/* #################### 文章 #################### */

/* #################### 点击目录动画 #################### */
aside #tree ul ul {
	display: none;
}
/* #################### 点击目录动画 #################### */

/* #################### 文章索引 #################### */

aside #toc {
	padding-top: 55px;
}

aside #toc a.read{
	/*color: #e06c75;*/
	color: #87daff;
	border-bottom: 0;
	-webkit-transition: 0.5s;
	-moz-transition: 0.5s;
	-ms-transition: 0.5s;
	-o-transition: 0.5s;
}

aside #toc a{
	color: #999;
	border-bottom: 0;
	-webkit-transition: 0.2s;
	-moz-transition: 0.2s;
	-ms-transition: 0.2s;
	-o-transition: 0.2s;
}

aside #toc a:hover{
	/*color: #87daff;*/
	color: #e5c07b;
	padding-left: 20px;
	-webkit-transition: 0.1s;
	-moz-transition: 0.1s;
	-ms-transition: 0.1s;
	-o-transition: 0.1s;
}

/* #################### 文章索引 #################### */

/* #################### 主页 #################### */

#articleList {
	position: absolute;
}

#articleList .article-li {
	margin: 20px;
	height: 200px;
	border-radius: 5px;
	box-shadow: 1px 1px 8px #999;
	list-style: none;
	border: 1px solid #999;
}

#articleList .article-digest * {
	word-wrap: break-word;
	display: inline;
	font-size: 12px;
	color: #555;
	text-decoration: none;
	cursor:auto;
	border-radius: none;
	box-shadow: none;
}

#articleList .article-digest{
	padding: 30px;
    position: relative;
    top: 35px;
    width: 85%;
}

#articleList .article-date{
	position: relative;
	background: #e06c75;
	color: #f9f7ed;
	padding: 10px;
	top: -5px;
	border-radius: 2px;
	margin-left: 30px;
}

#articleList .article-read {
    position: absolute;
    background: #e06c75;
    color: #f9f7ed;
    padding: 10px;
    border-radius: 2px;
    right: 15px;
    margin-top: 140px;
    text-decoration: none;
    z-index: 1;
}

#articleList .article-title {
	position: relative;
	color: #555;
	text-decoration: none;
	font-size: 24px;
	font-weight: bold;
    top: 50px;
    right: 110px;
}

/* #################### 主页 #################### */

canvas#live2dcanvas {
    border: 0 !important;
    left: 0;
}


/* #################### 自适应 #################### */

/* 当浏览器窗口不超过最大800px时(意思就是小于800px时) */

@media screen and (max-width: 800px) {
	aside {
		display: none;
	}

	#content {
		padding-left: 0;
	}

	canvas#live2dcanvas {
		display: none;
	}
}

/*竖屏*/
@media all and (orientation : portrait) {

	aside {
		display: none;
	}

	#content {
		padding-left: 0;
	}

	canvas#live2dcanvas {
		display: none;
	}

}

/* #################### 自适应 #################### */





